<template>
  <div>
    <el-row :gutter="20" type="flex">
      <el-col :span="6"
        ><el-input
          placeholder="请输入标题"
          v-model="listQueryIn.title"
          clearable
        >
        </el-input
      ></el-col>
      <el-button type="custom" @click="refreshList()" plain>搜索</el-button>
      <el-button type="custom" @click="handleAdd()" v-if="$button('762')"
        >新增</el-button
      >
    </el-row>
  </div>
</template>
<script>
import Bus from "@/utils/bus.js";
export default {
  data() {
    return {
      listQueryIn: {
        title: "",
        page: 1,
      },
    };
  },
  methods: {
    refreshList() {
      Bus.$emit("refreshPolicyList", this.listQueryIn);
    },
    handleAdd() {
      Bus.$emit("showDialogPolicyAdd");
    },
  },
};
</script>